from functools import wraps
# 自己写一个装饰器
def my_decorator(func):
	@wraps(func)
	def wrap_the_function():
		print("start")
		func()
		print("end")
	return wrap_the_function

@my_decorator
def need_decorate():
	print("Decorate me")

need_decorate()
print(need_decorate.__name__)